package cate.common.table.guild.task;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.util.random.RWItem;
import easy.java.dev.note.NoteField;

public class GuildTaskGroupRow extends ERow implements RWItem {
    @NoteField(value = "自动刷新权重")
    public double weight;

    @NoteField(value = "权重")
    public double unAutoWeight;

    @Override
    public void parse(XSSFRowWrap xr) {
        this.id = xr.getInteger("分组",0);
        this.weight = xr.getDouble("自动刷新权重", 0.0);
        this.unAutoWeight = xr.getDouble("手动刷新权重", 0.0);
    }

    @Override
    public double getWeight() {
        return weight;
    }
}
